<template>
    <div class="new">
      <div class="top">
        <b>上新精选</b><a href="#">更多  > </a>
      </div>
      <div class="bottom">
        <div class="b">
           <div class="box" v-for="(v,i) in this.$store.state.indexnew.obj" :key="i">
          <img :src="v.picture" />
          <span>{{v.text}}</span>
        </div>
        </div>
       
      </div>
    </div>
</template>

<script>
export default {
  created() {
    this.$store.dispatch("choice");
  },
};
</script>

<style scoped>
.new{
  width: 100%;
  margin-bottom: 0.1rem;
  background-color: #fff;
  transform: translateY(-0.55rem);
  border-radius: 0.1rem;
  display: flex;
}
.new .top{
  width: 100%;
  height: 0.48rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
}
.new .top b{
  font-size: 0.16rem;
  text-indent: 0.1rem;
}
.new .top a{
  font-size: 0.12rem;
  color: #aeaeae;
  display: inline-block;
  transform: translateX(-0.1rem);
}
.new .bottom {
  width: 100%;
  height: 1.4rem;
    overflow-x: auto;
     padding-top: 0.3rem;
     display: flex;
     align-items: center;
}
::-webkit-scrollbar{
  display: none;
}
.new .bottom .b{
  width: 1.02rem;
    height: 1.02rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.new .bottom  .b .box{
  width: 1.02rem;
  height: 1.6rem;
   display: flex;
  flex-direction: column;
  align-items: center;
}
.new .bottom .b  .box img{
  width: 1.02rem;
  height: 1.02rem;
  display: block;
}
.new .bottom .b .box span{
  font-size: 0.12rem;
  display: block;
  line-height: 0.22rem;
}

</style>